#ifndef CONFIG_H
#define CONFIG_H

// Libraries
#include <irrlicht.h>
#include "singleton.h"

// Namespaces
using namespace irr;
using namespace core;
using namespace scene;
using namespace video;
using namespace io;
using namespace gui;

// Classes
class ConfigClass: public Singleton<ConfigClass>
{
public:
	int Init();
	void Close();

	void GetSavePath(const stringc &TFile, stringc &TPath);

	bool LoadSettings();
	bool SaveSettings();

	void SetLastIPAddress(const stringc &TValue) { LastIPAddress = TValue; }
	void SetLastAccountName(const stringc &TValue) { LastAccountName = TValue; }
	const stringc &GetLastIPAddress() const { return LastIPAddress; }
	const stringc &GetLastAccountName() const { return LastAccountName; }

private:

	// Paths
	stringc SavePath;

	// Config
	stringc LastIPAddress, LastAccountName;

};

#endif
